package pishen;

import java.io.Serializable;

public class Link implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -640391735609107389L;
	private SimpleArticle target;
	private int times;

	public Link(SimpleArticle target) {
		this.target = target;
		times = 1;
	}

	public void addTimes(){
		times++;
	}
	
	public int getTimes(){
		return times;
	}
	
	public SimpleArticle getTarget(){
		return target;
	}
}
